<%@ page contentType="text/html; charset=utf-8"%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>


<c:set var="baseURL" scope="request"
	value="${pageContext.servletContext.contextPath}" />

<html xmlns='http://www.w3.org/1999/xhtml'>

<!--
Copyright: Darren Hester 2006, http://www.designsbydarren.com
License: Released Under the 'Creative Commons License', 
http://creativecommons.org/licenses/by-nc/2.5/
-->

<head>

<!-- Meta Data -->
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<meta name='description' content='A Bible tool in Spring MVC' />
<meta name='keywords'
	content='KJV, Bible, Spring, Spring MVC, AJAX, jQuery, XML' />

<!-- Site Title -->
<title>Spring Bible</title>

<!-- Link to Style External Sheet -->
<link href='${baseURL}/css/style.css' type='text/css' rel='stylesheet' />
<script type="text/javascript" src="${baseURL}/scripts/jquery-1.6.2.js"></script>
<script type="text/javascript" src="${baseURL}/scripts/home.js"></script>
</head>


<body>
<form:form method="POST" action="kjv" commandName="bible">
	<div id='page_wrapper'>

	<div id='page_header'>
	<h1>Spring Bible</h1>
	<h2>King James Version</h2>
	</div>

	<div id='menu_bar'>
	<div id='navcontainer' style="text-align: center;">
	<ul id='navlist'>
		<li>Book: <form:select path="book">
			<form:option value="" label="Select" />
			<form:options items="${stringList}" />
		</form:select></li>
		<li>Chapter: <form:select path="chapter">
			<form:option value="" label="Select" />
		</form:select></li>
		<li>Verse: <form:select path="verse">
			<form:option value="" label="Select" />
		</form:select></li>
	</ul>
	</div>
	</div>
	<div id='center' style="height: 65%;vertical-align: middle">
	<div id="verseText" style="vertical-align: middle"></div>
	</div>
	<div id='page_footer'>
	<p>The King James Version is a translation named after King James I of England, who first commissioned the new English Bible translation in 1604 A.D. and later completed in 1611 A.D. King James 'authorized' the new translation to be read in churches in England and beyond. Later known as the 'Authorized Version' in 1814, the King James Version became a standard among English-speaking Christians. </p>
	</div>
	</div>
</form:form>
</body>
</html>